/**
* @author Saerom Kim <kim79881@gmail.com>
* @version 1.6
* @since 2011-11-09
*/

public class OCP1_Main
{
	public static void main(String[] args)
	{
		Rectangle[] rt = new Rectangle[3];
		rt[0] = new Rectangle(2,10);
		rt[1] = new Rectangle(3,10);
		rt[2] = new Rectangle(4,10);

		Circle[] cr = new Circle[3];
		cr[0] = new Circle(3);
		cr[1] = new Circle(2);
		cr[2] = new Circle(4);

		AreaCalculator ac = new AreaCalculator();

		int temp = ac.Area(rt);
		int temp2 = ac.Area(cr);

		System.out.println("Rectangle : "+temp);
		System.out.println("Circle : "+temp2);
	}
}
